package hook;

public abstract class Opener {

    public abstract boolean isOpen();

    public final String open() {
        if (isOpen()) {
            return "hook opened";
        } else {
            return "hook closed";
        }
    }
}
